import request from '@/utils/request'

export function listOutbound(query) {
  return request({
    url: '/wms/outbound/list',
    method: 'get',
    params: query
  })
}

export function getOutbound(id) {
  return request({
    url: '/wms/outbound/' + id,
    method: 'get'
  })
}

export function addOutbound(data) {
  return request({
    url: '/wms/outbound',
    method: 'post',
    data: data
  })
}

export function updateOutbound(data) {
  return request({
    url: '/wms/outbound',
    method: 'put',
    data: data
  })
}

export function delOutbound(id) {
  return request({
    url: '/wms/outbound/' + id,
    method: 'delete'
  })
}

export function changeOutboundStatus(data) {
  return request({
    url: '/wms/outbound/status',
    method: 'put',
    data: data
  })
}

